/*
 * @Description: 佣金分配
 * @Author: iamsmiling
 * @Date: 2021-06-09 08:27:29
 * @LastEditTime: 2021-06-09 09:16:27
 */

class PartnerCommissionEntity {
  List<PartnerEntity> roles = [];
  PartnerCommissionEntity.sample1() {
    roles = [
      PartnerEntity(
          role: "成员C",
          roleColors: [
            "#BA7701",
            "#E79404",
          ],
          relationShip: "（3级间接关系）",
          fee: "50元",
          description: "佣金5%"),
      PartnerEntity(
          role: "成员B",
          roleColors: [
            "#FE7302",
            "#FD8E21",
          ],
          relationShip: "（2级间接关系）",
          fee: "50元",
          description: "佣金5%"),
      PartnerEntity(
          role: "成员A",
          roleColors: [
            "#D74403",
            "#EA7401",
          ],
          relationShip: "（1级间接关系）",
          fee: "150元",
          description: "佣金15%"),
      PartnerEntity(
          role: "成员X",
          roleColors: [
            "#0AAC7D",
            "#0AAC7D",
          ],
          descriptionColor: "#0AAC7D",
          description: "充值1000元")
    ];
  }

  PartnerCommissionEntity.sample2() {
    roles = [
      PartnerEntity(
          role: "成员D",
          roleColors: [
            "#02638B",
            "#0192C2",
          ],
          relationShip: "（4级间接关系）",
          description: "无佣金"),
      PartnerEntity(
          role: "成员C",
          roleColors: [
            "#BA7701",
            "#E79404",
          ],
          relationShip: "（3级间接关系）",
          fee: "50元",
          description: "佣金5%"),
      PartnerEntity(
          role: "成员B",
          roleColors: [
            "#FE7302",
            "#FD8E21",
          ],
          relationShip: "（2级间接关系）",
          fee: "50元",
          description: "佣金5%"),
      PartnerEntity(
          role: "成员A",
          roleColors: [
            "#D74403",
            "#EA7401",
          ],
          relationShip: "（1级间接关系）",
          fee: "150元",
          description: "佣金15%"),
      PartnerEntity(
          role: "成员X",
          roleColors: [
            "#0AAC7D",
            "#0AAC7D",
          ],
          descriptionColor: "#0AAC7D",
          description: "充值1000元")
    ];
  }
}

class PartnerEntity {
  late String role;
  late String relationShip;
  late String description;
  late String fee;

  late List<String> roleColors;

  late String? feeColor;

  late String descriptionColor;

  PartnerEntity(
      {required this.role,
      required this.description,
      this.descriptionColor = "#9E5601",
      this.fee = "",
      this.feeColor = "#FD5B03",
      this.relationShip = "",
      required this.roleColors});
}
